﻿
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using Model;
using MsDAL;
using System.ComponentModel;

namespace ServiceHelper
{
   [DataObjectAttribute]
   public  partial  class Ord0a01Manager:Ord0a01Base
    {
		private static Ord0a01Manager _entity;
		
        public static Ord0a01Manager Entity
        {
            get
            {
                if (_entity == null)
                    _entity = new Ord0a01Manager();
                return _entity;
            }
        }
		
		#region 个人代码
        public string SaveData(Hashtable tb, string action, string usercode)
        {
            List<SqlApp> lst = new List<SqlApp>();

            Ord0a01 model = null;
            if ("A" == action)
            {
                model = new Ord0a01();
                Components.CommonUtil.GetInstance.CopyProperties(tb, model);
                //添加维护者信息
                model.Muser = Context.GetAppByUserCode(usercode);

                //生成主键标识
                model.Listid = Sys0a60Manager.Entity.CreateSn("ord0a01_listid", usercode);
                //执行新增
                lst.Add(this.Add(model));
            }

            return CommonManager.Entity.SaveData(lst);
        }
		#endregion
    }
}



